import request from '@/utils/request'

// 查询队员积分列表
export function listMemberintegral(query) {
  return request({
    url: '/puyu/memberintegral/list',
    method: 'get',
    params: query
  })
}

// 查询队员积分详细
export function getMemberintegral(memberId) {
  return request({
    url: '/puyu/memberintegral/' + memberId,
    method: 'get'
  })
}

// 新增队员积分
export function addMemberintegral(data) {
  return request({
    url: '/puyu/memberintegral',
    method: 'post',
    data: data
  })
}

// 修改队员积分
export function updateMemberintegral(data) {
  return request({
    url: '/puyu/memberintegral',
    method: 'put',
    data: data
  })
}

// 删除队员积分
export function delMemberintegral(memberId) {
  return request({
    url: '/puyu/memberintegral/' + memberId,
    method: 'delete'
  })
}
